
const uniqueId = (() => {
    const id = (function* () {
        let mil = new Date().getTime();
   
        while (true)
            yield mil += 1;
    })();
   
    return () => id.next().value;
  
})

export default uniqueId;